package network.themis.rms.console.rest;

import network.themis.rms.console.common.model.RestResp;
import network.themis.rms.console.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ccl
 * @time 2018-07-18 10:28
 * @name UserController
 * @desc:
 */
@RequestMapping(value = "/user")
@RestController
public class UserController {
    @Resource
    private UserService userService;

    @GetMapping(value = "/list/{pageSize}/{pageNo}")
    public RestResp list(@PathVariable Integer pageSize, @PathVariable Integer pageNo){
        return userService.page(pageSize, pageNo);
    }
}
